//
// Created by Tony on 2024/1/19.
//

#include "Int64Literal.h"
#include "../../../compiler/Visitor.h"
#include "../../../lexer/token/Int64Token.h"

namespace Parser {

int64_t Int64Literal::getValue() const {
    auto int64Token = static_pointer_cast<Lexer::Int64Token>(token);
    return int64Token->getValue();
}

int32_t Int64Literal::accept(Compiler::Visitor* visitor) { return visitor->visit(this); }

} // namespace Parser
